
const structure = {
  namespaced: true,
  state: {
    tableHeader: [
      {
        title: "单据名称",
        dataKey: "orderName",
        key: 'orderName',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "单据关联表",
        dataKey: "orderTable",
        key: 'orderTable',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "单据关联表名称",
        dataKey: "orderTableName",
        key: 'orderTableName',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "类型",
        dataKey: "type",
        key: 'type',
        width: 200,
        type: 'select',
        isShow: true,
        isFixed: false,
        options: []
      }, {
        title: "外键",
        dataKey: "orderForeign",
        key: 'orderForeign',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "外键名称",
        dataKey: "orderForeignName",
        key: 'orderForeignName',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "备注",
        dataKey: "comment",
        key: 'comment',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "创建者",
        dataKey: "createUser",
        key: 'createUser',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "创建时间",
        dataKey: "createTime",
        key: 'createTime',
        width: 200,
        type: 'date',
        isShow: true,
        isFixed: false
      }, {
        title: "更新者",
        dataKey: "updateUser",
        key: 'updateUser',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "更新时间",
        dataKey: "updateTime",
        key: 'updateTime',
        width: 200,
        type: 'date',
        isShow: true,
        isFixed: false
      }
    ],
    defaultTableHeader: [
      {
        title: "单据名称",
        dataKey: "orderName",
        key: 'orderName',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "单据关联表",
        dataKey: "orderTable",
        key: 'orderTable',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "单据关联表名称",
        dataKey: "orderTableName",
        key: 'orderTableName',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "类型",
        dataKey: "type",
        key: 'type',
        width: 200,
        type: 'select',
        isShow: true,
        isFixed: false,
        options: []
      }, {
        title: "外键",
        dataKey: "orderForeign",
        key: 'orderForeign',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "外键名称",
        dataKey: "orderForeignName",
        key: 'orderForeignName',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "备注",
        dataKey: "comment",
        key: 'comment',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "创建者",
        dataKey: "createUser",
        key: 'createUser',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "创建时间",
        dataKey: "createTime",
        key: 'createTime',
        width: 200,
        type: 'date',
        isShow: true,
        isFixed: false
      }, {
        title: "更新者",
        dataKey: "updateUser",
        key: 'updateUser',
        width: 200,
        type: 'text',
        isShow: true,
        isFixed: false
      }, {
        title: "更新时间",
        dataKey: "updateTime",
        key: 'updateTime',
        width: 200,
        type: 'date',
        isShow: true,
        isFixed: false
      }
    ]
  },
  getters: {
  },
  mutations: {
    updateTableHeader(state, newTableHeader) {
      state.tableHeader.length = 0
      state.tableHeader.push(...newTableHeader)
    }
  },
  actions: {
  }
}
export default structure
